@echo off
rem #####################################################
rem 
rem Usage deploy.cmd <version/artifact name> <target environment>
rem
rem Example: deploy.cmd cac.web-1.1.1.1 int
rem 
rem #####################################################

set MSDEPLOY_CMD="c:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
set ARTIFACT_NAME=%1
set TARGET_ENV=%2

%MSDEPLOY_CMD% -source:package='Calc.zip' -dest:auto,includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParam:name=Version,Value=%ARTIFACT_NAME% -setParam:Name="IIS Web Application Name",value="Default Web Site/WebCalc.%TARGET_ENV%" -setParam:Name=Environment,value="%TARGET_ENV%"